package com.base.library

import android.annotation.SuppressLint
import android.app.Application
import android.content.Context
import com.base.library.utils.ActivityUtils
import com.base.library.utils.LogUtils

abstract class BaseApplication : Application() {
    companion object {
        @SuppressLint("StaticFieldLeak")
        lateinit var context: Context
    }

    override fun onCreate() {
        super.onCreate()
        context = this
        ActivityUtils.init(this)
        LogUtils.initTag(getLogTag())
    }

    abstract fun getLogTag(): String
}